Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from symbol to intern as the former seems dormant #262

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

ulysses4ever
Copy link
Collaborator

@ulysses4ever ulysses4ever commented Jun 14, 2024

intern seems to serve the same purpose as symbol but, unlike it, is actively maintained by Ryan G. Scott and is a part of kmettoverse.

The only kink is that it doesn't have a Read instance. I'm not sure why we need a Read instance anyway, but I had to define a trivial one otherwise it's a hassle to remove all deriving Read over the code. It'd be great to figure out if we really need it.

This hopefully unlocks support for GHC 9.10 (currently, symbol precludes it).

@ulysses4ever ulysses4ever force-pushed the leave-symbol branch 2 times, most recently from 017d74d to 1b8d55c Compare June 14, 2024 13:56
@ulysses4ever ulysses4ever mentioned this pull request Jun 14, 2024
3 tasks
Copy link
Member

@ckoparkar ckoparkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also had to wait for symbol and other libraries from the author before updating GHC in the past. I'm not opposed to switching to a different library.

@rrnewton
Copy link
Member

rrnewton commented Jun 18, 2024

Sounds good to me -- it's all a wannabe reconstruction of Scheme style symbols.

Dang, the Github PR review tool feels like it's really caught up with the Phabricator tool we use internally. Pretty nice.

@rrnewton rrnewton self-requested a review June 18, 2024 12:57
@ulysses4ever ulysses4ever marked this pull request as draft June 18, 2024 12:59
@ulysses4ever
Copy link
Collaborator Author

Thanks, will merge then! The only remaining issue is the absence of the Read instance for intern's symbol type...

`intern` seems to serve the same purpose but is actively maintained by
Ryan G. Scott and a part of kmettoverse

this hopefully unlocks support for GHC 9.10
@ulysses4ever
Copy link
Collaborator Author

All right, I ensured that the Show and Read instances work the same as before. Merging...

@ulysses4ever ulysses4ever marked this pull request as ready for review June 18, 2024 14:55
@ulysses4ever ulysses4ever merged commit 21023a0 into iu-parfunc:main Jun 18, 2024
9 checks passed
@ulysses4ever ulysses4ever deleted the leave-symbol branch June 18, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants